layui.use(['LDLayout', 'layer', 'form'], function () {
    var LDLayout = layui.LDLayout,
        layer = layui.layer,
        form = layui.form;

    // 设置中间内容区 最小高度
    LDLayout.setMinHeight();
    $(window).on('resize', LDLayout.setMinHeight);

    /* 事件绑定 */
    // 修改密码
    $('#edit_hook').on('click', function () {
        layer.open({
            type: 1,
            skin: 'ld-layer',
            title: '修改密码',
            area: ['600px', '380px'],
            content: '<form class="layui-form layer-form" action="#" id="edit_password_hook">\n' +
            '            <div class="form-row">\n' +
            '                <label for="">\n' +
            '                    <span>原密码</span>\n' +
            '                    <span>:</span>\n' +
            '                </label>\n' +
            '                <div class="row-value">' +
            '                   <input type="text" placeholder="请输入原密码">\n' +
            '                </div>' +
            '            </div>\n' +
            '            <div class="form-row">\n' +
            '                <label for="">\n' +
            '                    <span>新密码</span>\n' +
            '                    <span>:</span>\n' +
            '                </label>\n' +
            '               <div class="row-value">' +
            '                  <input type="text" placeholder="6-20位字母、数字和特殊字符串组成">\n' +
            '               </div>' +
            '            </div>\n' +
            '            <div class="form-row">\n' +
            '                <label for="">\n' +
            '                    <span>确认密码</span>\n' +
            '                    <span>:</span>\n' +
            '                </label>\n' +
            '               <div class="row-value">' +
            '                <input type="text" placeholder="请再次输入密码">\n' +
            '               </div>' +
            '            </div>\n' +
            '        </form>', //这里content是一个普通的String
            btn: ['确认', '取消']
        });
    })


    //
});
